const obj = {
    name: "John Doe",
    age: 30,
    gender: "male",
    onStart: () => {
        console.log('function is enumable property');
    }
};

for (let key in obj) {
    console.log(key);
    console.log(obj[key]);
}